package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.FirsthandEstate;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface FirsthandEstateRepository extends MongoRepository<FirsthandEstate, String> {
    FirsthandEstate findByEstateUuidAndCorporationCodeAndCityCode(String estateUuid,String corporationCode,String cityCode);

    FirsthandEstate findByEstateUuidAndCompanyUuid(String estateUuid,String companyUuid);

    FirsthandEstate findFirstByEstateUniqueUuid(String uniqueUuid);

    FirsthandEstate findFirstByEstateUniqueUuidAndCorporationCode(String uniqueUuid, String corporationCode);
}
